import request from "@/utils/request";
const URL = ''
export function login(mobile,password){
    return request({
        method:'get',
        url: URL+'/login?mobile='+mobile+'&password='+password
    })
}

export function register(data){
    return request({
        method:'post',
        url: URL+'/register',
        data
    })
}

export function teacherList(data){
    return request({
        method:'get',
        url: URL+"teachers?college="+data
    })
}

export function collegeList(){
    return request({
        method:'get',
        url: URL+'/colleges',
    })
}

export function changePwd(data){
    return request({
        method:'put',
        url: URL+'/pwd',
        data:data
    })
}
export function identity(){
    return request({
        method:'get',
        url: URL+'/identity',
    })
}
